import redis

client = redis.Redis('', 6379)
script = client.get('agingScript')
keys = client.zrange('keyByStat_count', 0, -1)
pipeline = client.pipeline(transaction=False)
for k in keys:
    pipeline.evalsha(script, 2, 'keyByStat_count', k)
pipeline.execute()
